/*
 * @Descripttion:
 * @version:
 * @Author: yuanliutech
 * @Date: 2022-12-13 14:39:24
 * @LastEditors: yuanliutech@lwj
 * @LastEditTime: 2022-12-21 10:18:23
 */
import {
    validMobile,
    validSpaceSpecialCharEmoji,
    validPhoneLandlineNotRequired2,
} from "@utils/validate";
export default {
    data() {
        return {
            rules: {
                name: [{
                        required: true,
                        message: "请输入姓名",
                        trigger: "blur",
                    },
                    {
                        validator: validSpaceSpecialCharEmoji,
                    },
                ],
                mobile: [
                    // { required: true, message: '请输入联系电话', trigger: 'blur' },
                    // { pattern: '/^((0\d{2,3}-\d{7,8})|(1[3584]\d{9})$/', message: '请输入正确的手机号码或者座机号', trigger: 'blur' },
                    {
                        required: true,
                        message: "请输入联系电话",
                        trigger: "blur",
                    },
                    {
                        validator: validPhoneLandlineNotRequired2,
                    },
                ],
                orgId: [{
                    required: true,
                    message: "请选择联网单位",
                    trigger: "change",
                }, ],
                parentId: [{
                    required: true,
                    message: "请选择组织机构",
                    trigger: "change",
                }, ],
            },
        };
    },
    methods: {},
};